import http from "@/http";

export default {
    select: {
        name: "查询人员",
        path: "/api/person",
        call: async function (params: any = {}) {
            return await http.get(this.path, params);
        },
    },
    add: {
        name: "增加人员",
        path: "/api/category",
        call: async function (params: any = {}) {
            return await http.post(this.path, params);
        },
    },
    update: {
        name: "更新人员",
        path: "/api/person",
        call: async function (params: any = {}) {
            return await http.put(this.path, params);
        },
    },
    delete: {
        name: "删除人员",
        path: "/api/person",
        call: async function (params: any = {}) {
            return await http.delete(this.path, params);
        },
    },
};